//
//  Setting.h
//  ViewPoint
//
//  Created by ldmiao on 09-3-6.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kFilename @"ViewPointSetting.plist"

#define knameKey @"name"
#define kpwdKey @"pwd"
#define ksave_pwdKey @"save_pwd"
#define kshow_titleKey @"show_title"
#define kshow_senderKey @"show_sender"
#define kshow_dateKey @"show_date"
#define kshow_ipKey @"show_ip"
#define kshow_attachmentKey @"show_attachment"
#define kshow_referenceKey @"show_reference"
#define kshow_signatureKey  @"show_signature"
#define khead_fontKey @"head_font"
#define ktext_fontKey @"text_font"
#define kstyleKey @"style"
#define kcssKey @"css"
#define khostKey @"host"

@interface Setting : NSObject {
	NSMutableDictionary *settings;
}

+ (NSString *)dataFilePath;

- (id) init;
- (id) valueForKey:(NSString*)key;
//- (id) valueForKey:(NSString*)key inType:(NSString*)type;
- (void) setValue:(NSString*)value forKey:(NSString*)key;
- (void) removeObjectForKey:(NSString*)key;

- (void) refresh;

- (void)initSettings;
- (void) persist;
- (void) close;

@end
